+2008-11-25 Johan Dahlin <jdahlin@async.com.br>
+
+ Bug 559947 – Unchecked dependency on python>=2.4
+
+ * gtk/gtk-builder-convert:
+ Avoid using sorted() which is only present in python 2.
+
2008-11-24 Tristan Van Berkom <tvb@gnome.org>
* gtk/gtkalignment.c: Bug 561539 - Fix warnings when size allocations
# Output the newly created root objects and sort them
# by attribute id
- for obj in sorted(self.root_objects,
- key=lambda n: n.getAttribute('id'),
- reverse=True):
+ # FIXME: Use sorted(self.root_objects,
+ # key=lambda n: n.getAttribute('id'),
+ # reverse=True):
+ # when we can depend on python 2.4 or higher
+ root_objects = self.root_objects[:]
+ root_objects.sort(lambda a, b: cmp(b.getAttribute('id'),
+ a.getAttribute('id')))
+ for obj in root_objects:
self._interface.childNodes.insert(0, obj)
def _convert(self, klass, node):